package com.wf.course.dao;

import com.utils.page.PageBean;
import com.wf.course.model.comm.Distribution;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: liu
 * @Date: 2018/7/13 14:49
 * @Description: 分销
 */
public interface IDistributionMapper {

    List<Distribution> recordList(PageBean<Distribution> pageBean);

    Integer recordCount(PageBean<Distribution> pageBean);

    List<Distribution> goodsList(PageBean<Distribution> pageBean);

    Integer goodsCount(PageBean<Distribution> pageBean);

    Integer deleteGoods(Integer id);

    Distribution getGoodById(Integer id);

    void saveOrUpdateDistribution(Distribution distribution);

    Integer addGoods(Distribution distribution);

    List<Map<String, Object>> configuration();

    Integer configure(@Param("key") String key, @Param("value") Integer value, @Param("updateTime") Integer updateTime);

    Integer updateRemark(@Param("key") String key, @Param("remark") String remark, @Param("updateTime") Integer updateTime);

}
